﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using MVCPets.Extensions;

namespace MVCPets.Tests.Extensions
{
  [TestClass]
  public class ExceptionTests
  {
    Exception ex;

    [TestInitialize()] //shield your eyes
    public void MyTestInitialize()
    {
      try
      {
        throw new Exception();
      }
      catch (Exception e)
      {
        try
        {
          throw new Exception("oops!", e);
        }
        catch (Exception ex2)
        {
          ex = ex2;
        }
      }
    }
  }
}
